package com.ailanyin.modules.system.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.ailanyin.common.base.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 操作日志
 *
 * @author ailanyin
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysUseLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Excel(name = "操作序号")
    private Long id;

    @Excel(name = "操作模块")
    private String title;

    @Excel(name = "业务类型" , replace = {"其他_0" , "新增_1" , "修改_2" , "删除_3" , "授权_4" , "导出_5" , "导入_6" , "强退_7" , "生成代码_8" , "清空数据_9"})
    private Integer businessType;

    private Integer[] businessTypes;

    @Excel(name = "请求方法")
    private String method;

    @Excel(name = "请求方式")
    private String requestMethod;

    @Excel(name = "操作类别" , replace = {"其他_0" , "后台用户_1" , "手机端用户_2"})
    private Integer operatorType;

    @Excel(name = "操作人员")
    private String operatorName;

    private String deptName;

    @Excel(name = "请求地址")
    private String url;

    @Excel(name = "操作地址")
    private String ip;

    @Excel(name = "操作地点")
    private String operationLocation;

    @Excel(name = "请求参数")
    private String operationParam;

    @Excel(name = "返回参数")
    private String jsonResult;

    @Excel(name = "状态" , replace = {"正常_0" , "异常_1"})
    private Integer status;

    @Excel(name = "错误消息")
    private String errorMsg;

    @Excel(name = "操作时间" , format = "yyyy-MM-dd HH:mm:ss" , width = 30)
    private Date operationTime;


}
